//package com.lt.test.consumer.controller;
//
//import com.alibaba.dubbo.config.annotation.Reference;
//import com.lt.test.api.KtTakeStockItemService;
//import com.lt.test.common.util.WebUtils;
//import com.lt.test.entity.DTO.ResponseDTO;
//import org.slf4j.Logger;
//import org.slf4j.LoggerFactory;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Controller;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RequestMethod;
//import org.springframework.web.bind.annotation.ResponseBody;
//
//import javax.servlet.http.HttpServletRequest;
//import javax.servlet.http.HttpServletResponse;
//import java.util.HashMap;
//import java.util.List;
//import java.util.Map;
//
///**
// * 创建人：lt
// * 创建时间：17:34 2018/8/15
// */
//@Controller
//@RequestMapping("/ktTakeStockItem")
//public class KtTakeStockItemController {
//    private static final Logger logger = LoggerFactory.getLogger(KtSaleProjectController.class);
//
//    //盘点Service
//    @Reference(version = "1.0.0")
//    private KtTakeStockItemService ktTakeStockItemService;
//
//
//    /**
//     * 保存盘点单
//     *
//     * @param request
//     * @param response
//     * @return json
//     */
//    @RequestMapping("/saveTakeSrockItem")
//    public
//    @ResponseBody
//    ResponseDTO saveTakeSrockItem(HttpServletRequest request, HttpServletResponse response) {
//        ResponseDTO responseDTO = new ResponseDTO();
//        Map<String,String> parameter = WebUtils.getAllParamMap(request);
//        try {
//            ktTakeStockItemService.saveTakeSrockItem(parameter);
//            responseDTO.setCode("000");
//            responseDTO.setSuccess(true);
//            responseDTO.setMessage("操作成功");
//        } catch (Exception e) {
//            e.printStackTrace();
//            responseDTO.setCode("500");
//            responseDTO.setMessage("服务器异常");
//        }
//        return responseDTO;
//    }
//
//    /**
//     * 查询盘库订单详情列表
//     * @param request
//     * @return
//     */
//    @RequestMapping(value = "/quTakeStockItem", method = {RequestMethod.POST, RequestMethod.GET})
//    public @ResponseBody
//    ResponseDTO queryTakeSrockItem(HttpServletRequest request){
//        ResponseDTO responseDTO = new ResponseDTO();
//        Map<String,String> parameter = WebUtils.getAllParamMap(request);
//        Map reqMap = new HashMap();
//        try {
//            List<Map<String, Object>> list = ktTakeStockItemService.queryTakeSrockItem(parameter);
//            responseDTO.setCode("000");
//            responseDTO.setSuccess(true);
//            responseDTO.setMessage("操作成功");
//            responseDTO.setData(list);
//        } catch (Exception e) {
//            e.printStackTrace();
//            responseDTO.setCode("500");
//            responseDTO.setMessage("服务器异常");
//        }
//        return responseDTO;
//    }
//
//}
